import 'package:blog_flutter/controller/MenuController.dart';
import 'package:blog_flutter/widgets/ContentWidget.dart';
import 'package:blog_flutter/widgets/HeaderWidget.dart';
import 'package:blog_flutter/widgets/SliderMenuWidget.dart';
import 'package:flutter/material.dart';
import 'package:get/get.dart';

class HomePage extends StatelessWidget {

  MenuController _menuController = Get.put(MenuController());

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.grey,
      drawer: SliderMenuWidget(),
      key: _menuController.homegGlobalKey,
      body: SingleChildScrollView(
        child: Column(
          children: [
            HeaderWidget(),
            ContentWidget()
          ],
        ),
      ),
    );
  }
}
